import fetch from 'common/src/utils/fetch'
export function getReportAuthList(data = {}) {
    return fetch({
        url: '/api/studentservice/registered/findRegisteredList',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 报到权限管理 新生报到权限管理（列表）
export function getRegistrationList(data = {}) {
    return fetch({
        url: '/api/studentservice/report/findReportConfigList',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}


// 报到权限管理 新增
export function addReportConfig(data = {}) {
    return fetch({
        url: '/api/studentservice/report/addReportConfig',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}


// 报到权限管理 删除
export function deleteReportConfig(data = {}) {
    return fetch({
        url: '/api/studentservice/report/deleteReportConfig',
        method: 'delete',
        data
    })
}

// 报到权限管理 编辑
export function updateReportConfig(data = {}) {
    return fetch({
        url: '/api/studentservice/report/updateReportConfig',
        method: 'put',
        data
    })
}

export function addReportAuth(data = {}) {
    return fetch({
        url: '',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}
export function editReportAuth(data = {}) {
    return fetch({
        url: '',
        method: 'put',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

export function deleteReportAuth(data = '') {
    return fetch({
        url: '',
        method: 'delete',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}